"""
    os.walk(url)可以把该目录下包括子目录下所有的文件都给遍历出来
"""
import os

def traversal(url):
    if url=='' or url is None:
        return
    for maindir,subdir,filename_list in os.walk(url):
        for file in filename_list:
            print(file)



traversal('F:/py_test')





